package com.gite.nouette.admin.implementation.integrator.director;

import com.gite.nouette.admin.contract.integrator.builder.IBuilderAdmin;
import com.gite.nouette.admin.contract.integrator.director.IDirectorAdmin;
import com.gite.nouette.admin.contract.model.IAdmin;

public class DirectorAdminImpl implements IDirectorAdmin {
	private IBuilderAdmin builder;

	@Override
	public IBuilderAdmin getBuilder() {
		return this.builder;
	}

	@Override
	public void setBuilder(IBuilderAdmin builder) {
		this.builder = builder;
	}

	@Override
	public IAdmin getProduct() {
		return getBuilder().getProduct();
	}

	@Override
	public void constructProduct() {
		getBuilder().createNewProduct();
		getBuilder().buildManagers();
	}
}
